package com.hao.netty.chapter02.nio;

/**
 * @Description //TODO
 * @Date 2020/1/11
 * @Author songhao
 **/
public class TimeClient {

    public static void main(String[] args) {
        int port = 8081;
        if(args != null && args.length > 0){
            try{
                port = Integer.parseInt(args[0]);
            }catch (Exception e){
                port = 8080;
            }
        }

        new Thread(new TimeClientHandler("127.0.0.1",port),"TimeClient-001").start();
    }
}
